Hi Everyone!
I'm showing Ajax login form for various user action in my portal, once successfully login I want to update some div's for that I'm using following code,
$(document).ajaxStop(function(){
$.get($(location).attr('href'),function(html){
var $html = $(html);
$('#topBar').html($html.find('#topBar'));
$('#commentsForm').html($html.find('#commentsForm'));
});
});
Will above code leads to any recursive Ajax calls ? currently its working as expected but I want to know it clearly.
Update:
I kept log at end of the ajaxStop then it printing log message recursively then it shows clearly that above code making recursive calls.
AVADHESH PATEL
18-May-2013